from __future__ import absolute_import, division, print_function, unicode_literals

def first(condition, sequence):
    for i in sequence:
        result = condition(i)
        if result:
            return result
